﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CWCS.Entity.Convery;


namespace CWCS.Entity.Convery
{
    public class SmartEntity
    {
        #region 智能电表基础信息
        public string config; //设备类型配置
        public int SmartDBAddress;// 智能电表DB值
        public int Smartvalue;//DB长度
        public int Smartlength;//DB长度
        public string Belong;//分组
        public string equipmentnumber;//设备号
        public string equipmenttype;//设备类型
        public string equipmentname;//设备名称
        public int port;//端口
        private string m_Key_ip;//IP地址
        public string Key_ip
        {
            get { return m_Key_ip; }
            set { m_Key_ip = value; }
        }
        private bool m_cFlag;//连接标识

        public bool CFlag
        {
            get { return m_cFlag; }
            set { m_cFlag = value; }
        }
        private int c_connectstatus;
        public int connectstatus
        {
            get { return c_connectstatus; }
            set { c_connectstatus = 0; }
        }
        #endregion
        #region 智能电表信息
        SmartInfo _smart_c_Info;

        public SmartInfo Smart_C_Info
        {
            get { return _smart_c_Info; }
            set
            {
                if (_smart_c_Info == null)
                {
                    _smart_c_Info = new SmartInfo();
                }
                _smart_c_Info = value;
            }
        }


        #endregion
    }
}
